import struct

file2716 = "2716.bin"
file2732 = "2732.bin"

with open(file2716,mode='wb+') as f:
    for i in range(2**11):
        s = struct.pack('B',0xff)
        if i<1:
            s = struct.pack('B', i & 0xff)
        else:
            s = struct.pack('B', 0xff)
        f.write(s)
with open(file2732,mode='wb+') as f:
    for i in range(2**12):
        s = struct.pack('B',0xff)
        if i <= 0x62:
            s = struct.pack('B', i & 0xff)
        else:
            s = struct.pack('B', 0xff)

        if i < 0x00ff and (i & 0xf)==0:
            s = struct.pack('B', 0x0)

        f.write(s)